package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface DishService {
    void save(DishDTO dishDTO);


    PageResult page(DishPageQueryDTO dishPageQueryDTO);

    void delete(List<Long> ids);

    DishVO getByIdWithFlavor(Long id);


    void updateDish(DishDTO dishDTO);
    List<Dish> list(Long categoryId);


    List<DishVO> listWithFlavor(Dish dish);

    void startOrStop(Integer status, Long id);
}
